// 导入http模块
const http = require('http');

//创建web服务器实例
const server = http.createServer();

// 位服务器实力绑定request事件，监听客户端的请求
server.on('request', (req, res) => {
    console.log('Someone visit our web server!');
})
// 启动服务器
server.listen(80, function () {
    console.log('Server running at http://127.0.0.1:80');
})